package com.example.lock.component.lock.executor;

/**
 * @Description: 分布式锁抽象处理器
 * @author: sun
 * @date: 2022.01.17
 */
public abstract class AbstractLockExecutor<T> implements LockExecutor<T> {

    protected T obtainLockInstance(boolean locked, T lockInstance) {
        return locked ? lockInstance : null;
    }

}
